<?php

namespace Unl\HomologacionBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ModuloType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('numeroModulo','integer',array('attr'=>array('title'=>'Ingrese el numero de nivel','class'=>'entero', 'maxlength'=>'2')))
                    ;
    }
    
    public function getDefaultOptions(array $options)
    {
        return array('data_class' => 'Unl\HomologacionBundle\Entity\Modulo',);
    }

    public function getName()
    {
        return 'unl_homologacionbundle_modulotype';
    }
}
